<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TSlider类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_slider-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TSlider类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TSlider 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_slider.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8b77b178c20611c83b83e90e27cfb8e3"><td class="memItemLeft" align="right" valign="top"><a id="a8b77b178c20611c83b83e90e27cfb8e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlider</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a8b77b178c20611c83b83e90e27cfb8e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cbeb13c3c9d110db3433c27b356bc52"><td class="memItemLeft" align="right" valign="top"><a id="a9cbeb13c3c9d110db3433c27b356bc52"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlider</b> (const slider_t *nativeObj)</td></tr>
<tr class="separator:a9cbeb13c3c9d110db3433c27b356bc52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3a5d9f99aaf1ed54df83aa03397bb42"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#aa3a5d9f99aaf1ed54df83aa03397bb42">SetValue</a> (double value)</td></tr>
<tr class="separator:aa3a5d9f99aaf1ed54df83aa03397bb42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a515af10d59397591c1e4c688ca8f1605"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a515af10d59397591c1e4c688ca8f1605">SetMin</a> (double min)</td></tr>
<tr class="separator:a515af10d59397591c1e4c688ca8f1605"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c05fe3c061299cd80b3da0d0ea385e4"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a3c05fe3c061299cd80b3da0d0ea385e4">SetMax</a> (double max)</td></tr>
<tr class="separator:a3c05fe3c061299cd80b3da0d0ea385e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a877fb53415611bd430b66dcfcd30815f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a877fb53415611bd430b66dcfcd30815f">SetStep</a> (double step)</td></tr>
<tr class="separator:a877fb53415611bd430b66dcfcd30815f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75e2469104afd7365bbcac4ff9f0818"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#ae75e2469104afd7365bbcac4ff9f0818">SetBarSize</a> (uint32_t bar_size)</td></tr>
<tr class="separator:ae75e2469104afd7365bbcac4ff9f0818"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9868f05a48bb5eeca59f84a02f7d8a15"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a9868f05a48bb5eeca59f84a02f7d8a15">SetVertical</a> (bool vertical)</td></tr>
<tr class="separator:a9868f05a48bb5eeca59f84a02f7d8a15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f49a577bb5f64ad5e696b0b240075b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a50f49a577bb5f64ad5e696b0b240075b">GetValue</a> () const</td></tr>
<tr class="separator:a50f49a577bb5f64ad5e696b0b240075b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4662e499dbfe16e76253d39e88e07adf"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a4662e499dbfe16e76253d39e88e07adf">GetMin</a> () const</td></tr>
<tr class="separator:a4662e499dbfe16e76253d39e88e07adf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa18fb4e11808d283a69467273b50a644"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#aa18fb4e11808d283a69467273b50a644">GetMax</a> () const</td></tr>
<tr class="separator:aa18fb4e11808d283a69467273b50a644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f27b1481a6be60f2ce3c5773039e8ef"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a2f27b1481a6be60f2ce3c5773039e8ef">GetStep</a> () const</td></tr>
<tr class="separator:a2f27b1481a6be60f2ce3c5773039e8ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a021eeeeead615953277a24334ec76994"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a021eeeeead615953277a24334ec76994">GetVertical</a> () const</td></tr>
<tr class="separator:a021eeeeead615953277a24334ec76994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cbe085904d455114d9a6ed25077b604"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a8cbe085904d455114d9a6ed25077b604">GetBarSize</a> () const</td></tr>
<tr class="separator:a8cbe085904d455114d9a6ed25077b604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a944d5f3d69245763de152af14a0d279a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a944d5f3d69245763de152af14a0d279a">GetDraggerSize</a> () const</td></tr>
<tr class="separator:a944d5f3d69245763de152af14a0d279a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af58c5d6b1b6646466ef621a6854c9afb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#af58c5d6b1b6646466ef621a6854c9afb">GetDraggerAdaptToIcon</a> () const</td></tr>
<tr class="separator:af58c5d6b1b6646466ef621a6854c9afb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a446125bd9e006b0f946dadd7c581ef33"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#a446125bd9e006b0f946dadd7c581ef33">GetSlideWithBar</a> () const</td></tr>
<tr class="separator:a446125bd9e006b0f946dadd7c581ef33"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a9b8717054bdd9c71afc1d25101ce8ab7"><td class="memItemLeft" align="right" valign="top"><a id="a9b8717054bdd9c71afc1d25101ce8ab7"></a>
static <a class="el" href="class_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a9b8717054bdd9c71afc1d25101ce8ab7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f30c7aa4096501e67d19cbadd683b8a"><td class="memItemLeft" align="right" valign="top"><a id="a7f30c7aa4096501e67d19cbadd683b8a"></a>
static <a class="el" href="class_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a7f30c7aa4096501e67d19cbadd683b8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a904c9909c4382cbbf05d374a3ce86b2d"><td class="memItemLeft" align="right" valign="top"><a id="a904c9909c4382cbbf05d374a3ce86b2d"></a>
static <a class="el" href="class_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a904c9909c4382cbbf05d374a3ce86b2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af34d124a31c9a6435805c5dee3f6b108"><td class="memItemLeft" align="right" valign="top"><a id="af34d124a31c9a6435805c5dee3f6b108"></a>
static <a class="el" href="class_t_slider.html">TSlider</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:af34d124a31c9a6435805c5dee3f6b108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd1a9d93eed54409f035a4261e45898"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slider.html#acfd1a9d93eed54409f035a4261e45898">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:acfd1a9d93eed54409f035a4261e45898"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑块控件。</p>
<p>slider_t是widget\_t的子类控件，widget_t的函数均适用于slider_t控件。</p>
<p>在xml中使用"slider"标签创建滑块控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;10&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;20&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">slider</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;90&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">min</span>=<span class="stringliteral">&quot;5&quot;</span> <span class="keyword">max</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">step</span>=<span class="stringliteral">&quot;5&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/basic.xml">basic</a></p>
<p>在c代码中使用函数slider_create创建滑块控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slider.c">slider demo</a></p>
<p>可用通过style来设置控件的显示风格，如图片和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;img&quot;</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;slider_bg&quot;</span> <span class="keyword">fg_image</span>=<span class="stringliteral">&quot;slider_fg&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_p&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;slider_drag_o&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L179">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="acfd1a9d93eed54409f035a4261e45898"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd1a9d93eed54409f035a4261e45898">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSlider::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slider对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a8cbe085904d455114d9a6ed25077b604"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cbe085904d455114d9a6ed25077b604">&#9670;&nbsp;</a></span>GetBarSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlider::GetBarSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>轴的宽度或高度（单位：像素），为0表示为控件的宽度或高度的一半，缺省为0。 </p>

</div>
</div>
<a id="af58c5d6b1b6646466ef621a6854c9afb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af58c5d6b1b6646466ef621a6854c9afb">&#9670;&nbsp;</a></span>GetDraggerAdaptToIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TSlider::GetDraggerAdaptToIcon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滑块的宽度或高度是否与icon适应，缺省为true。 </p>

</div>
</div>
<a id="a944d5f3d69245763de152af14a0d279a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a944d5f3d69245763de152af14a0d279a">&#9670;&nbsp;</a></span>GetDraggerSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlider::GetDraggerSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滑块的宽度或高度（单位：像素），缺省为10。 </p>

</div>
</div>
<a id="aa18fb4e11808d283a69467273b50a644"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa18fb4e11808d283a69467273b50a644">&#9670;&nbsp;</a></span>GetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TSlider::GetMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大值。 </p>

</div>
</div>
<a id="a4662e499dbfe16e76253d39e88e07adf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4662e499dbfe16e76253d39e88e07adf">&#9670;&nbsp;</a></span>GetMin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TSlider::GetMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最小值。 </p>

</div>
</div>
<a id="a446125bd9e006b0f946dadd7c581ef33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a446125bd9e006b0f946dadd7c581ef33">&#9670;&nbsp;</a></span>GetSlideWithBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TSlider::GetSlideWithBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否允许在轴上滑动来改变滑块位置，缺省为FALSE。 </p>

</div>
</div>
<a id="a2f27b1481a6be60f2ce3c5773039e8ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f27b1481a6be60f2ce3c5773039e8ef">&#9670;&nbsp;</a></span>GetStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TSlider::GetStep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>拖动的最小单位。 </p>

</div>
</div>
<a id="a50f49a577bb5f64ad5e696b0b240075b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50f49a577bb5f64ad5e696b0b240075b">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double TSlider::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>值。 </p>

</div>
</div>
<a id="a021eeeeead615953277a24334ec76994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a021eeeeead615953277a24334ec76994">&#9670;&nbsp;</a></span>GetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TSlider::GetVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滑块的是否为垂直方向。 </p>

</div>
</div>
<a id="ae75e2469104afd7365bbcac4ff9f0818"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae75e2469104afd7365bbcac4ff9f0818">&#9670;&nbsp;</a></span>SetBarSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetBarSize </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>bar_size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置bar的宽度或高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bar_size</td><td>bar的宽度或高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3c05fe3c061299cd80b3da0d0ea385e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c05fe3c061299cd80b3da0d0ea385e4">&#9670;&nbsp;</a></span>SetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetMax </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑块的最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a515af10d59397591c1e4c688ca8f1605"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a515af10d59397591c1e4c688ca8f1605">&#9670;&nbsp;</a></span>SetMin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetMin </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑块的最小值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a877fb53415611bd430b66dcfcd30815f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a877fb53415611bd430b66dcfcd30815f">&#9670;&nbsp;</a></span>SetStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetStep </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>step</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑块的拖动的最小单位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">step</td><td>拖动的最小单位。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa3a5d9f99aaf1ed54df83aa03397bb42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3a5d9f99aaf1ed54df83aa03397bb42">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑块的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9868f05a48bb5eeca59f84a02f7d8a15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9868f05a48bb5eeca59f84a02f7d8a15">&#9670;&nbsp;</a></span>SetVertical()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlider::SetVertical </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑块的方向。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>是否为垂直方向。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
